package cn.liontalk.ProxyPattern.pattern4;

/**
 * 为其他对象提供一种代理以控制对这个对象的访问。
 */
public class Test {


//    public static void main(String[] args) {
//        LOLPlayer lolPlayer = new LOLPlayer("geekdigging");
//        lolPlayer.login("geekdigging", "password");
//        lolPlayer.pentaKill();
//        lolPlayer.victory();
//    }

    public static void main(String[] args) {
        LOLPlayer lolPlayer = new LOLPlayer("geekdigging");
        LOLPlayerProxy proxy = new LOLPlayerProxy(lolPlayer);
        proxy.login("geekdigging", "password");
        proxy.pentaKill();
        proxy.victory();
    }
}
